Home } Calculators } Money Counter



Enter the number of bills and coins and this script will calculate the total amount of money you have. All blank entries are ignored. Input field validation is also included -- try entering a non-digit into a field. Also, this script is a good demonstration of a JavaScript return function in use. Neat!
$ 100 $ 50 $ 20 $ 10 $ 5 $ 1
 
  50 � 25 � 10 � 5 � 1 �
 
 

JavaScript Source Code 2002: Calculators: Money Counter

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!